{template order_header.html}

<form class="form-horizontal" action="" method="post" id="myform" name="myform">
    <div class="page-bar">
        <ul class="page-breadcrumb mylink">
            {$menu.link}
        </ul>
        <ul class="page-breadcrumb myname">
            {$menu.name}
        </ul>
        <div class="page-toolbar">
            <div class="btn-group pull-right">
                <button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false" data-hover="dropdown"> {L('操作菜单')}
                    <i class="fa fa-angle-down"></i>
                </button>
                <ul class="dropdown-menu pull-right" role="menu">
                    {loop $menu.quick $t}
                    <li>
                        <a href="{$t.url}">{$t.icon} {$t.name}</a>
                    </li>
                    {/loop}
                    <li class="divider"> </li>
                    <li>
                        <a href="javascript:window.location.reload();">
                            <i class="icon-refresh"></i> {L('刷新页面')}</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>

    <h3 class="page-title">
        <small>
            <label>{L('订单号')}：<a href="javascript:;" class="btn green btn-xs">{$order.sn}</a></label>
            {if $order.out_trade_no}<label>{L('商户订单')}：<a href="javascript:;" class="btn green btn-xs">{$order.out_trade_no}</a></label>{/if}&nbsp;
        </small>

    </h3>

    <div class="portlet light bordered ">
        <div class="portlet-title">
            <div class="caption">
                <span class="caption-subject font-green">{L('基本信息')}</span>
            </div>
        </div>
        <div class="portlet-body">

            <div class="row" style="clear: both">
                <div class="col-md-6 col-sm-12">
                    <div class="portlet  box">
                        <div class="portlet-body">
                            <div class="row static-info">
                                <div class="col-md-3 name">{L('订单状态')}：</div>
                                <div class="col-md-9 value"> {dr_order_status($order)}</div>
                            </div>
                            <div class="row static-info">
                                <div class="col-md-3 name"> {L('下单时间')}：</div>
                                <div class="col-md-9 value"> {dr_date($order.order_time)} </div>
                            </div>
                            <div class="row static-info">
                                <div class="col-md-3 name"> {L('买家账号')}：</div>
                                <div class="col-md-9 value"> <a href="javascript:;" onclick="dr_dialog_member('{$order.buy_uid}')">{$order.buy_username}</a>  </div>
                            </div>
                            <div class="row static-info">
                                <div class="col-md-3 name"> {L('商家账号')}：</div>
                                <div class="col-md-9 value"> <a href="javascript:;" onclick="dr_dialog_member('{$order.sell_uid}')">{$order.sell_username}</a> </div>
                            </div>
                        </div>
                    </div>
                </div>
               
                <div class="col-md-6 col-sm-12">
                    <div class="portlet box">
                        <div class="portlet-body">
                            <div class="row static-info">
                                <div class="col-md-3 name"> 订单金额： </div>
                                <div class="col-md-9 value"> {if $order.order_score}{intval($order.order_price)}{SITE_SCORE}{else}¥{number_format($order.order_price, 2)}元 {/if}</div>
                            </div>
                            <div class="row static-info">
                                <div class="col-md-3 name"> 付款时间： </div>
                                <div class="col-md-9 value"> {if $order.pay_time}{dr_date($order.pay_time)}{else}未付款{/if} </div>
                            </div>
                            <div class="row static-info">
                                <div class="col-md-3 name"> 支付方式： </div>
                                <div class="col-md-9 value"> {payType($order.pay_type)} </div>
                            </div>
                            {if $order.creator_id}
                            <div class="row static-info">
                                <div class="col-md-3 name"> 创作者： </div>
                                <div class="col-md-9 value"> {issuerName($order.creator_id)} </div>
                            </div>
                            {/if}
                        </div>
                    </div>
                </div>
                
            </div>

        </div>
    </div>


    <div class="portlet light bordered ">
        <div class="portlet-body">

            <table class="table ">
                <thead>
                <tr>
                    <th width="90"> </th>
                    <th> 名称 </th>
                    <th> 编号 </th>
                    <th width="350"> 价格 </th>
                    <th width="350"> 数量 </th>
                </tr>
                </thead>
                <tbody>
                {loop $order.goods $t}
                <tr>
                    <td>
                        <a target="_blank" ><img src="{dr_thumb($t.thumb, 50, 50)}" width="50"></a>
                    </td>
                    <td>
                        <a>{$t.title} </a>
                    </td>
                    <td>{$t.sn}/{$t.total}</td>
                    <td> ¥{number_format($t.order_price, 2)}</td>
                    <td> x1</td>
                </tr>
                {/loop}

                </tbody>
            </table>
        </div>
    </div>

    {if $box}
    <div class="portlet light bordered ">
        <div class="portlet-body">

            <table class="table ">
                <thead>
                <tr>
                    <th width="90"> </th>
                    <th> 盲盒礼品名称 </th>
                    <th width="350"> 编码 </th>
                    <th width="350"> 价格 </th>
                    <th width="350"> 数量 </th>
                </tr>
                </thead>
                <tbody>

                <tr>
                    <td><a target="_blank" ><img src="{dr_thumb($box.thumb, 50, 50)}" width="50"></a></td>
                    <td><a>{$box.title} </a></td>
                    <td><a>{$box.number}/{$box.total} </a></td>
                    <td> ¥{number_format($box.price, 2)}</td>
                    <td> X1</td>
                </tr>

                </tbody>
            </table>
        </div>
    </div>
    {/if}
</form>
{template nfooter.html}